package com.apeli.spring;

/**
 * BeanDefinition
 *
 * @author liming
 * @date 2023 06 04
 */
public class BeanDefinition {

    /**
     * type
     */
    private Class type;

    /**
     * 模式 single单例  prototype 多例
     */
    private Scope.Type scope;

    /**
     * 是否懒加载
     */
    private boolean isLazy;

    public Class getType() {
        return type;
    }

    public void setType(Class type) {
        this.type = type;
    }

    public Scope.Type getScope() {
        return scope;
    }

    public void setScope(Scope.Type scope) {
        this.scope = scope;
    }

    public boolean isLazy() {
        return isLazy;
    }

    public void setLazy(boolean lazy) {
        isLazy = lazy;
    }
}
